Sha256: 957cad0def44e6f29468d3eadb49f0b63d6eae20abb69335cf6c987ee66402fd

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

# copy master key if missing

class Bard::Provision::MasterKey < Bard::Provision
  def call
    print "Master Key:"
    if File.exist?("config/master.key")
      if !provision_server.run "[ -f config/master.key ]", quiet: true
        print " Uploading config/master.key,"
        Bard::Copy.new("config/master.key").scp_using_local(:to, provision_server)
      end
    end

    puts " ✓"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bard-1.0.5 lib/bard/provision/masterkey.rb
bard-1.0.4 lib/bard/provision/masterkey.rb
bard-1.0.3 lib/bard/provision/masterkey.rb
bard-1.0.2 lib/bard/provision/masterkey.rb
bard-1.0.1 lib/bard/provision/master_key.rb
bard-1.0.0 lib/bard/provision/master_key.rb