Module: Ora::Cli
- Defined in:
- lib/ora/cli.rb,
lib/ora/cli/bash.rb,
lib/ora/cli/path.rb,
lib/ora/cli/task.rb,
lib/ora/cli/print.rb,
lib/ora/cli/stdin.rb,
lib/ora/cli/version.rb,
lib/ora/cli/push_task.rb,
lib/ora/cli/tasks/push_to_aus.rb,
lib/ora/cli/tasks/push_to_uat.rb,
lib/ora/cli/precondition_error.rb,
lib/ora/cli/tasks/switch_branch.rb,
lib/ora/cli/tasks/push_to_master.rb,
lib/ora/cli/tasks/push_to_staging.rb,
lib/ora/cli/tasks/new_feature_branch.rb,
lib/ora/cli/tasks/push_feature_branch.rb,
lib/ora/cli/tasks/delete_feature_branch.rb
Defined Under Namespace
Classes: Bash, DeleteFeatureBranch, NewFeatureBranch, Path, PreconditionError, Print, PushFeatureBranch, PushTask, PushToAus, PushToMaster, PushToStaging, PushToUat, Stdin, SwitchBranch, Task
Constant Summary collapse
- VERSION =
"0.2.7"
Class Method Summary collapse
Class Method Details
.run(custom_develop_branch) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ora/cli.rb', line 8 def self.run(custom_develop_branch) project_path = `pwd`.strip remove_ext = "sed 's/\.[^.]*$//'" task = Bash.new(project_path).select("ls #{Path.tasks} | #{remove_ext}") require "ora/cli/tasks/#{task}" class_name = task.split('_').map(&:capitalize).join Object.const_get("Ora::Cli::#{class_name}"). new(project_path, develop_branch: custom_develop_branch).run end |