Class: Bosh::Deployer::Cli::Commands::GenerateStub
- Inherits:
-
Object
- Object
- Bosh::Deployer::Cli::Commands::GenerateStub
- Defined in:
- lib/bosh-deployer/cli/commands/generate_stub.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path = nil) ⇒ GenerateStub
constructor
A new instance of GenerateStub.
- #perform ⇒ Object
Constructor Details
#initialize(name, path = nil) ⇒ GenerateStub
Returns a new instance of GenerateStub.
7 8 9 10 |
# File 'lib/bosh-deployer/cli/commands/generate_stub.rb', line 7 def initialize(name, path=nil) @name = name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/bosh-deployer/cli/commands/generate_stub.rb', line 5 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/bosh-deployer/cli/commands/generate_stub.rb', line 5 def path @path end |
Instance Method Details
#perform ⇒ Object
12 13 14 |
# File 'lib/bosh-deployer/cli/commands/generate_stub.rb', line 12 def perform stub.generate end |