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



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

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

#filesObject



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

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

#initObject



169
170
171
# File 'lib/chamber/binary/runner.rb', line 169

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

#secureObject



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

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

#showObject



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

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

#signObject



152
153
154
155
156
157
158
# File 'lib/chamber/binary/runner.rb', line 152

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