Class: HustleAndFlow::Commands::Ready
- Inherits:
-
Object
- Object
- HustleAndFlow::Commands::Ready
- Defined in:
- lib/hustle_and_flow/commands/ready.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
Returns the value of attribute io.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(io:, **args) ⇒ Ready
constructor
A new instance of Ready.
Constructor Details
#initialize(io:, **args) ⇒ Ready
10 11 12 13 |
# File 'lib/hustle_and_flow/commands/ready.rb', line 10 def initialize(io:, **args) self.io = io self. = args end |
Instance Attribute Details
#io ⇒ Object
Returns the value of attribute io.
7 8 9 |
# File 'lib/hustle_and_flow/commands/ready.rb', line 7 def io @io end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/hustle_and_flow/commands/ready.rb', line 7 def @options end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/hustle_and_flow/commands/ready.rb', line 15 def call repo = VersionControl.new(path: Dir.pwd) VersionControls::Commands::Ready.call \ io: io, repo: repo IssueTrackers::Commands::Ready.call \ io: io, repo: repo, me: repo.user, branch_name: repo.current_branch.name, overwritten: [], options: end |