Class: Ninny::Commands::NewStaging
- Inherits:
-
CreateDatedBranch
- Object
- Ninny::Command
- CreateDatedBranch
- Ninny::Commands::NewStaging
- Defined in:
- lib/ninny/commands/new_staging.rb
Instance Attribute Summary
Attributes inherited from CreateDatedBranch
#branch_type, #should_delete_old_branches
Instance Method Summary collapse
-
#initialize(options) ⇒ NewStaging
constructor
A new instance of NewStaging.
Methods inherited from CreateDatedBranch
#branch_name, #create_branch, #date_suffix, #delete_old_branches, #execute, #extra_branches, #with_branch_type
Methods inherited from Ninny::Command
#command, #cursor, #editor, #exec_exist?, #execute, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ NewStaging
Returns a new instance of NewStaging.
6 7 8 9 |
# File 'lib/ninny/commands/new_staging.rb', line 6 def initialize() super @branch_type = Git::STAGING_PREFIX end |