Class: Minos::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Shell
Defined in:
lib/minos/cli.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/minos/cli.rb', line 11

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

#pushObject



26
27
28
29
30
31
32
33
34
35
# File 'lib/minos/cli.rb', line 26

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

#versionObject



38
39
40
# File 'lib/minos/cli.rb', line 38

def version
  puts Minos::VERSION
end