Class: Convoy::Setup::Dsl::Global
- Inherits:
-
Command
- Object
- Command
- Convoy::Setup::Dsl::Global
show all
- Defined in:
- lib/convoy/setup/dsl/global.rb
Instance Method Summary
collapse
Methods inherited from Command
#action, #command, #description, #options, #requires_arguments, #summary
Constructor Details
#initialize(&block) ⇒ Global
5
6
7
8
9
10
|
# File 'lib/convoy/setup/dsl/global.rb', line 5
def initialize(&block)
reset(:global)
block.call(self)
rescue => e
raise Convoy::ClientError.new("Problem with syntax of global configuration", e)
end
|
Instance Method Details
#config_file(name, options = {}) ⇒ Object
12
13
14
|
# File 'lib/convoy/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/convoy/setup/dsl/global.rb', line 16
def version(version)
@version = version
end
|