Class: Escort::Setup::Dsl::Global

Inherits:
Command
  • Object
show all
Defined in:
lib/escort/setup/dsl/global.rb

Instance Method Summary collapse

Methods inherited from Command

#action, #command, #description, #options, #requires_arguments, #summary

Constructor Details

#initialize(&block) ⇒ Global

Returns a new instance of Global.



5
6
7
8
9
10
# File 'lib/escort/setup/dsl/global.rb', line 5

def initialize(&block)
  reset(:global)
  block.call(self)
rescue => e
  raise Escort::ClientError.new("Problem with syntax of global configuration", e)
end

Instance Method Details

#config_file(name, options = {}) ⇒ Object



12
13
14
# File 'lib/escort/setup/dsl/global.rb', line 12

def config_file(name, options = {})
  @config_file = ConfigFile.new(name, options)
end

#version(version) ⇒ Object



16
17
18
# File 'lib/escort/setup/dsl/global.rb', line 16

def version(version)
  @version = version
end