Class: Sekrit::CLI

Inherits:
Thor show all
Defined in:
lib/sekrit.rb

Instance Method Summary collapse

Instance Method Details

#pullObject



47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/sekrit.rb', line 47

def pull
  configure_logger(verbose: options[:verbose])
  driver = lambda do |bundle_id, config, passphrase|
    Pull.new(
      bundle_id: bundle_id,
      config: config,
      passphrase: passphrase
    )
  end

  runner = Runner.new(name: 'Pull', options: options, driver: driver)
  runner.run
end

#pushObject



27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/sekrit.rb', line 27

def push
  configure_logger(verbose: options[:verbose])
  driver = lambda do |bundle_id, config, passphrase|
    Push.new(
      bundle_id: bundle_id,
      config: config,
      passphrase: passphrase
    )
  end

  runner = Runner.new(name: 'Push', options: options, driver: driver)
  runner.run
end