class Minos::CLI
Public Instance Methods
build()
click to toggle source
# File lib/minos/cli.rb, line 9 def build results = artifacts.map do |a| artifact = Artifact.new(a, options: options) artifact.build end exit 1 if results.flatten.any?(&:failure?) results end
push()
click to toggle source
# File lib/minos/cli.rb, line 24 def push results = artifacts.map do |a| artifact = Artifact.new(a, options: options) artifact.push end exit 1 if results.flatten.any?(&:failure?) results end
version()
click to toggle source
# File lib/minos/cli.rb, line 36 def version puts Minos::VERSION end
Private Instance Methods
artifacts()
click to toggle source
# File lib/minos/cli.rb, line 42 def artifacts artifacts = parse['build']['artifacts'].to_a artifacts.reject! { |a| options[:except].include?(a['name']) } if options[:except].count > 0 artifacts.select! { |a| options[:only].include?(a['name']) } if options[:only].count > 0 artifacts end
parse()
click to toggle source
# File lib/minos/cli.rb, line 49 def parse @parse ||= YAML.load(read) end
read()
click to toggle source
# File lib/minos/cli.rb, line 53 def read File.read(options[:manifest]) end