Class: LogicalConstruct::Provision

Inherits:
Mattock::Tasklib
  • Object
show all
Extended by:
Mattock::ValiseManager
Includes:
Mattock::ValiseManager
Defined in:
lib/logical-construct/target/provision.rb

Instance Method Summary collapse

Instance Method Details

#defineObject



25
26
27
28
29
30
31
32
33
34
# File 'lib/logical-construct/target/provision.rb', line 25

def define
  task_spine(:preflight, :approve_host, :build_configs, :provision)

  task :bundled_path do
    unless ENV['PATH'] =~ /(?:^|:)#{construct_bin_path}(?::|$)/
      ENV['PATH'] = "#{construct_bin_path}:#{ENV['PATH']}"
    end
  end
  task :preflight => :bundled_path
end

#resolve_configurationObject



18
19
20
21
22
23
# File 'lib/logical-construct/target/provision.rb', line 18

def resolve_configuration
  self.valise = default_valise(search_paths)
  self.construct_bin_path ||= File::expand_path("bin", construct_dir)
  self.construct_bin_path = File::absolute_path(construct_bin_path)
  super
end