Class: HustleAndFlow::VersionControls::Git::Commands::Ready

Inherits:
Object
  • Object
show all
Defined in:
lib/hustle_and_flow/version_controls/git/commands/ready.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#ioObject

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

#repoObject

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

#callObject



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