Class: Escort::Setup::Dsl::Global
- Defined in:
- lib/escort/setup/dsl/global.rb
Instance Method Summary collapse
- #config_file(name, options = {}) ⇒ Object
-
#initialize(&block) ⇒ Global
constructor
A new instance of Global.
- #version(version) ⇒ Object
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, = {}) @config_file = ConfigFile.new(name, ) end |
#version(version) ⇒ Object
16 17 18 |
# File 'lib/escort/setup/dsl/global.rb', line 16 def version(version) @version = version end |