Sha256: 7a0aa4f98d576dc23bfd54210ffffcf74b70c71d4d2a577caa1d598f10405aa8

Contents?: true

Size: 411 Bytes

Versions: 26

Compression:

Stored size: 411 Bytes

Contents

module Bard::CLI::MasterKey
  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[options[:from]]
        to = config[options[:to]]
        from.copy_file "config/master.key", to:
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
bard-1.0.7 lib/bard/cli/master_key.rb
bard-1.0.6 lib/bard/cli/master_key.rb
bard-1.0.5 lib/bard/cli/master_key.rb
bard-1.0.4 lib/bard/cli/master_key.rb
bard-1.0.3 lib/bard/cli/master_key.rb
bard-1.0.2 lib/bard/cli/master_key.rb