Class: HustleAndFlow::VersionControls::Git::Commands::Ready
- Inherits:
-
Object
- Object
- HustleAndFlow::VersionControls::Git::Commands::Ready
- Defined in:
- lib/hustle_and_flow/version_controls/git/commands/ready.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
Returns the value of attribute io.
-
#repo ⇒ Object
Returns the value of attribute repo.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**args) ⇒ Ready
constructor
A new instance of Ready.
Constructor Details
#initialize(**args) ⇒ Ready
9 10 11 12 |
# File 'lib/hustle_and_flow/version_controls/git/commands/ready.rb', line 9 def initialize(**args) self.repo = args[:repo] self.io = args[:io] end |
Instance Attribute Details
#io ⇒ Object
Returns the value of attribute io.
6 7 8 |
# File 'lib/hustle_and_flow/version_controls/git/commands/ready.rb', line 6 def io @io end |
#repo ⇒ Object
Returns the value of attribute repo.
6 7 8 |
# File 'lib/hustle_and_flow/version_controls/git/commands/ready.rb', line 6 def repo @repo end |
Class Method Details
.call(**args) ⇒ Object
23 24 25 |
# File 'lib/hustle_and_flow/version_controls/git/commands/ready.rb', line 23 def self.call(**args) new(**args).call end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/hustle_and_flow/version_controls/git/commands/ready.rb', line 14 def call system('git update --quiet') && ( system('git ccrtb') || system('git poc') ) && system('bundle exec rspec') end |