Class: Chamber::Binary::Runner

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/chamber/binary/runner.rb

Instance Method Summary collapse

Instance Method Details

#compareObject



115
116
117
# File 'lib/chamber/binary/runner.rb', line 115

def compare
  Commands::Compare.call(**options.transform_keys(&:to_sym).merge(shell: self))
end

#filesObject



85
86
87
# File 'lib/chamber/binary/runner.rb', line 85

def files
  puts Commands::Files.call(**options.transform_keys(&:to_sym).merge(shell: self))
end

#initObject



185
186
187
# File 'lib/chamber/binary/runner.rb', line 185

def init
  Commands::Initialize.call(**options.transform_keys(&:to_sym).merge(shell: self))
end

#secureObject



135
136
137
# File 'lib/chamber/binary/runner.rb', line 135

def secure
  Commands::Secure.call(**options.transform_keys(&:to_sym).merge(shell: self))
end

#showObject



77
78
79
# File 'lib/chamber/binary/runner.rb', line 77

def show
  puts Commands::Show.call(**options.transform_keys(&:to_sym).merge(shell: self))
end

#signObject



168
169
170
171
172
173
174
# File 'lib/chamber/binary/runner.rb', line 168

def sign
  if options[:verify]
    Commands::Verify.call(**options.transform_keys(&:to_sym).merge(shell: self))
  else
    Commands::Sign.call(**options.transform_keys(&:to_sym).merge(shell: self))
  end
end

#unsecureObject



150
151
152
# File 'lib/chamber/binary/runner.rb', line 150

def unsecure
  Commands::Unsecure.call(**options.transform_keys(&:to_sym).merge(shell: self))
end