Class: FluentCommandBuilder::AppCfgPython::V16::Backends
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::AppCfgPython::V16::Backends
- Defined in:
- lib/fluent_command_builder/command_builders/appcfg_python_16.rb
Instance Method Summary collapse
- #configure(backend) {|@builder| ... } ⇒ Object
- #delete(backend) {|@builder| ... } ⇒ Object
-
#initialize(builder, directory) ⇒ Backends
constructor
A new instance of Backends.
- #list {|@builder| ... } ⇒ Object
- #rollback(backend) {|@builder| ... } ⇒ Object
- #start(backend) {|@builder| ... } ⇒ Object
- #stop(backend) {|@builder| ... } ⇒ Object
- #update(backend) ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, directory) ⇒ Backends
Returns a new instance of Backends.
181 182 183 184 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 181 def initialize(builder, directory) super builder @builder.append " backends #{@builder.format directory}" end |
Instance Method Details
#configure(backend) {|@builder| ... } ⇒ Object
185 186 187 188 189 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 185 def configure(backend) @builder.append " configure #{@builder.format backend}" yield @builder if block_given? self end |
#delete(backend) {|@builder| ... } ⇒ Object
190 191 192 193 194 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 190 def delete(backend) @builder.append " delete #{@builder.format backend}" yield @builder if block_given? self end |
#list {|@builder| ... } ⇒ Object
195 196 197 198 199 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 195 def list @builder.append ' list' yield @builder if block_given? self end |
#rollback(backend) {|@builder| ... } ⇒ Object
200 201 202 203 204 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 200 def rollback(backend) @builder.append " rollback #{@builder.format backend}" yield @builder if block_given? self end |
#start(backend) {|@builder| ... } ⇒ Object
205 206 207 208 209 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 205 def start(backend) @builder.append " start #{@builder.format backend}" yield @builder if block_given? self end |
#stop(backend) {|@builder| ... } ⇒ Object
210 211 212 213 214 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 210 def stop(backend) @builder.append " stop #{@builder.format backend}" yield @builder if block_given? self end |
#update(backend) ⇒ Object
215 216 217 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 215 def update(backend) Update.new @builder, backend end |