Class: Swgr2rb::Main
- Inherits:
-
Object
- Object
- Swgr2rb::Main
- Defined in:
- lib/swgr2rb.rb
Overview
Main is being called from bin/swgr2rb.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ Main
constructor
A new instance of Main.
Constructor Details
#initialize(args) ⇒ Main
Returns a new instance of Main.
11 12 13 |
# File 'lib/swgr2rb.rb', line 11 def initialize(args) @args = args end |
Instance Method Details
#execute ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/swgr2rb.rb', line 15 def execute @url, @params = parse_cli_arguments generate_scaffold if @params[:from_scratch] generate_endpoint_object_models generate_example_feature_file if @params[:from_scratch] format_target_dir_with_rubocop end |