class Aspen::CLI::Commands::BuildSteps::BuildStep
Public Instance Methods
call(*)
click to toggle source
# File lib/aspen/cli/commands/build_steps.rb, line 25 def call(*) @files = Dry::CLI::Utils::Files end
config()
click to toggle source
# File lib/aspen/cli/commands/build_steps.rb, line 14 def config return @config if @config @config = {} Dir['config/*.yml'].each do |path| key = File.basename(path, File.extname(path)) value = YAML.load_file(path) @config[key.to_s] = value end @config end
manifest()
click to toggle source
# File lib/aspen/cli/commands/build_steps.rb, line 9 def manifest return @manifest if @manifest @manifest = @files.exist?('manifest.yml') ? YAML.load_file('manifest.yml') : {} end