Class: Suppository::CreateCommand
- Inherits:
-
Object
- Object
- Suppository::CreateCommand
- Includes:
- Logger
- Defined in:
- lib/suppository/create_command.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ CreateCommand
constructor
A new instance of CreateCommand.
- #run ⇒ Object
Methods included from Logger
log_error, log_info, log_success, log_verbose
Constructor Details
#initialize(args) ⇒ CreateCommand
Returns a new instance of CreateCommand.
12 13 14 15 |
# File 'lib/suppository/create_command.rb', line 12 def initialize(args) assert_arguments args @repository = repository(args[0]) end |
Instance Method Details
#run ⇒ Object
17 18 19 20 |
# File 'lib/suppository/create_command.rb', line 17 def run assert_not_created create_repository end |