Class: Minfra::Cli::Main

Inherits:
Command show all
Defined in:
lib/minfra/cli/main_command.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

#debug, #deprecated, #error, #exit_error, #info, #warn

Methods included from Common

#run_cmd

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/minfra/cli/main_command.rb', line 27

def self.exit_on_failure?
  true
end

Instance Method Details

#kube(*args) ⇒ Object



9
10
11
12
# File 'lib/minfra/cli/main_command.rb', line 9

def kube(*args)
  kube = Kube.new(options, minfra_config)
  kube.kubectl_command(args)
end

#tagObject



18
19
20
# File 'lib/minfra/cli/main_command.rb', line 18

def tag
  Tag.new.tag_current_commit_for_deploy(options[:message], options[:format])
end

#versionObject



23
24
25
# File 'lib/minfra/cli/main_command.rb', line 23

def version
  puts Minfra::Cli::VERSION
end