Sha256: ecd288390c07883f516e57683e31502a7e45013d234eb05df11255b5d7b5023b

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

module Bard
  class Provision < Struct.new(:config, :ssh_url)
    def self.call(...) = new(...).call

    def call
      %w[SSH User AuthorizedKeys Apt MySQL Repo MasterKey RVM App Passenger Data HTTP LogRotation].each do |step|
        require "bard/provision/#{step.downcase}"
        self.class.const_get(step).call(*values)
      end
    end

    private

    def server
      config[:production]
    end

    def provision_server
      server.with(ssh: ssh_url)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bard-1.3.4 lib/bard/provision.rb
bard-1.3.3 lib/bard/provision.rb
bard-1.3.2 lib/bard/provision.rb
bard-1.3.1 lib/bard/provision.rb
bard-1.3.0 lib/bard/provision.rb
bard-1.2.0 lib/bard/provision.rb