Class: Bard::CLI::CI
Defined Under Namespace
Instance Attribute Summary collapse
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(project_name, sha, local: false) ⇒ CI
constructor
A new instance of CI.
- #local? ⇒ Boolean
Constructor Details
#initialize(project_name, sha, local: false) ⇒ CI
Returns a new instance of CI.
7 8 9 10 11 12 |
# File 'lib/bard/ci.rb', line 7 def initialize project_name, sha, local: false @project_name = project_name @sha = sha @local = !!local @runner = @local ? Local.new(project_name, sha) : Remote.new(project_name, sha) end |
Instance Attribute Details
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
14 15 16 |
# File 'lib/bard/ci.rb', line 14 def project_name @project_name end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
14 15 16 |
# File 'lib/bard/ci.rb', line 14 def runner @runner end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
14 15 16 |
# File 'lib/bard/ci.rb', line 14 def sha @sha end |
Instance Method Details
#local? ⇒ Boolean
16 17 18 |
# File 'lib/bard/ci.rb', line 16 def local? @local end |