Class: SingularityClient::CLI
- Inherits:
-
Thor
- Object
- Thor
- SingularityClient::CLI
- Defined in:
- lib/singularity_client/cli.rb
Overview
Handles all command line interface logic
Instance Attribute Summary collapse
-
#config_hash ⇒ Object
readonly
Returns the value of attribute config_hash.
Instance Method Summary collapse
- #add(repo, project) ⇒ Object
- #add_pull(repo, project) ⇒ Object
- #add_push(repo, project) ⇒ Object
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #remove_repo(repo) ⇒ Object
Constructor Details
#initialize(*args) ⇒ CLI
Returns a new instance of CLI.
11 12 13 14 |
# File 'lib/singularity_client/cli.rb', line 11 def initialize(*args) super = end |
Instance Attribute Details
#config_hash ⇒ Object (readonly)
Returns the value of attribute config_hash.
9 10 11 |
# File 'lib/singularity_client/cli.rb', line 9 def config_hash @config_hash end |
Instance Method Details
#add(repo, project) ⇒ Object
35 36 37 38 |
# File 'lib/singularity_client/cli.rb', line 35 def add(repo, project) run(:add, repo, project, 'proposal') run(:add, repo, project, 'change') end |
#add_pull(repo, project) ⇒ Object
43 44 45 |
# File 'lib/singularity_client/cli.rb', line 43 def add_pull(repo, project) run(:add, repo, project, 'proposal') end |
#add_push(repo, project) ⇒ Object
50 51 52 |
# File 'lib/singularity_client/cli.rb', line 50 def add_push(repo, project) run(:add, repo, project, 'change') end |
#remove_repo(repo) ⇒ Object
57 58 59 |
# File 'lib/singularity_client/cli.rb', line 57 def remove_repo(repo) run(:remove, repo) end |