Class: ApiGenHelper::CLI::GenCommand
- Inherits:
-
Thor
- Object
- Thor
- ApiGenHelper::CLI::GenCommand
- Includes:
- ApiGenHelper
- Defined in:
- lib/api_gen_helper/cli/gen_command.rb
Constant Summary
Constants included from ApiGenHelper
Instance Method Summary collapse
Instance Method Details
#gen(project_path, group_path, target_name) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/api_gen_helper/cli/gen_command.rb', line 11 def gen(project_path, group_path, target_name) proj_path_exist = Dir[project_path].count > 0 unless proj_path_exist puts 'Xcodeproj not found' return end generator = GroupGenerator.new generator.generate_group(project_path, group_path, target_name) end |