Class: StartProject::Runner
- Inherits:
-
Object
- Object
- StartProject::Runner
- Defined in:
- lib/start_project/runner.rb
Overview
The Runner class is the entry point to the app
Instance Method Summary collapse
-
#initialize(argv) ⇒ Runner
constructor
Reads the arguments from the command line and creates a new option object.
-
#run ⇒ Object
The run method is called from the executable.
Constructor Details
#initialize(argv) ⇒ Runner
Reads the arguments from the command line and creates a new option object.
7 8 9 |
# File 'lib/start_project/runner.rb', line 7 def initialize(argv) = Options.new(argv) end |
Instance Method Details
#run ⇒ Object
The run method is called from the executable. Two static methods download and unzip_file are called, these are the main methods in the gem.
12 13 14 15 |
# File 'lib/start_project/runner.rb', line 12 def run Downloader.download(.project_uri) Downloader.unzip_file(.project_name) end |