Class: Swgr2rb::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/swgr2rb.rb

Overview

Main is being called from bin/swgr2rb.

Instance Method Summary collapse

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

#executeObject



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