lib/fwtoolkit/cli/bitrise.rb in fwtoolkit-2.2.4 vs lib/fwtoolkit/cli/bitrise.rb in fwtoolkit-2.3.0
- old
+ new
@@ -10,24 +10,24 @@
include Thor::Actions
include FWToolkit::ThorUtils
source_root_templates!
- desc 'genereate [PROJECT NAME] [CLASS PREFIX]', "Create a new bitrise.yml file for the project, based on a blank file"
- def generate(project_name, class_prefix)
+ desc 'genereate [PROJECT NAME]', "Create a new bitrise.yml file for the project, based on a blank file"
+ def generate(project_name)
destination_root = Dir.pwd
say "Creating bitrise.yml file in: #{File.expand_path destination_root}/bitrise.yml"
- invoke FWToolkit::Bitrise, 'new', [destination_root, project_name, class_prefix.upcase]
+ invoke FWToolkit::Bitrise, 'new', [destination_root, project_name]
end
desc 'new', 'Creates a new bitrise YML configuration file'
- def new(project_root, project_name, class_prefix)
+ def new(project_root, project_name)
destination_root = project_root
bitrise_file = File.join(project_root, 'bitrise.yml')
- Projectfile.load_with_config! :project_name => project_name, :class_prefix => class_prefix.upcase
+ Projectfile.load_with_config! :project_name => project_name
template_config = { :target_platform => Config.target_platform,
:organization_name => Config.organization_name,
:project_creator => Config.developer_name }
template_config.merge! Projectfile.config
\ No newline at end of file