Module: Bard::CLI::MasterKey
- Defined in:
- lib/bard/cli/master_key.rb
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bard/cli/master_key.rb', line 2 def self.included mod mod.class_eval do desc "master_key --from=production --to=local", "copy master key from from to to" option :from, default: "production" option :to, default: "local" def master_key from = config[[:from]] to = config[[:to]] from.copy_file "config/master.key", to: end end end |