Class: Pindo::Command::Repo::Create
- Inherits:
-
Pindo::Command::Repo
- Object
- Pindo::Command
- Pindo::Command::Repo
- Pindo::Command::Repo::Create
- Defined in:
- lib/pindo/command/repo/create.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Create
constructor
A new instance of Create.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Create
Returns a new instance of Create.
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/pindo/command/repo/create.rb', line 43 def initialize(argv) @args_repo_name = argv.shift_argument @args_login_flag = argv.flag?('force', false) @repo_name = argv.option('repo') @org_name = argv.option('org') super(argv) @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/pindo/command/repo/create.rb', line 34 def self. [ ['--login', '强制再登录网站'], ['--repo', '仓库的名称'], ['--org', '仓库的group信息'], ].concat(super) end |
Instance Method Details
#run ⇒ Object
58 59 60 61 62 |
# File 'lib/pindo/command/repo/create.rb', line 58 def run puts " coming soon !!" end |
#validate! ⇒ Object
54 55 56 |
# File 'lib/pindo/command/repo/create.rb', line 54 def validate! super end |