Sha256: 7a0aa4f98d576dc23bfd54210ffffcf74b70c71d4d2a577caa1d598f10405aa8

Contents?: true

Size: 411 Bytes

Versions: 22

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

22 entries across 22 versions & 1 rubygems

Version Path
bard-1.4.0 lib/bard/cli/master_key.rb
bard-1.3.9 lib/bard/cli/master_key.rb
bard-1.3.8 lib/bard/cli/master_key.rb
bard-1.3.7 lib/bard/cli/master_key.rb
bard-1.3.6 lib/bard/cli/master_key.rb
bard-1.3.5 lib/bard/cli/master_key.rb
bard-1.3.4 lib/bard/cli/master_key.rb
bard-1.3.3 lib/bard/cli/master_key.rb
bard-1.3.2 lib/bard/cli/master_key.rb
bard-1.3.1 lib/bard/cli/master_key.rb
bard-1.3.0 lib/bard/cli/master_key.rb
bard-1.2.0 lib/bard/cli/master_key.rb
bard-1.1.2 lib/bard/cli/master_key.rb
bard-1.1.1 lib/bard/cli/master_key.rb
bard-1.1.0 lib/bard/cli/master_key.rb
bard-1.0.8 lib/bard/cli/master_key.rb
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