Class: Bard::Provision

Inherits:
Struct
  • Object
show all
Defined in:
lib/bard/provision.rb

Direct Known Subclasses

App, Apt, Data, HTTP, MasterKey, MySQL, Passenger, RVM, Repo, SSH, User

Defined Under Namespace

Classes: App, Apt, Data, HTTP, MasterKey, MySQL, Passenger, RVM, Repo, SSH, User

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



2
3
4
# File 'lib/bard/provision.rb', line 2

def config
  @config
end

#ssh_urlObject

Returns the value of attribute ssh_url

Returns:

  • (Object)

    the current value of ssh_url



2
3
4
# File 'lib/bard/provision.rb', line 2

def ssh_url
  @ssh_url
end

Class Method Details

.callObject



3
# File 'lib/bard/provision.rb', line 3

def self.call(...) = new(...).call

Instance Method Details

#callObject



5
6
7
8
9
10
# File 'lib/bard/provision.rb', line 5

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