Module: Charyf::Command::Actions
- Included in:
- Base
- Defined in:
- lib/charyf/utils/command/actions.rb
Instance Method Summary collapse
- #load_generators ⇒ Object
-
#require_application_and_environment!(group = :default) ⇒ Object
def set_application_directory! Dir.chdir(File.expand_path(“../..”, APP_PATH)) unless File.exist?(File.expand_path(“config.ru”)) end.
- #start_interfaces! ⇒ Object
- #start_pipeline! ⇒ Object
Instance Method Details
#load_generators ⇒ Object
18 19 20 |
# File 'lib/charyf/utils/command/actions.rb', line 18 def load_generators Charyf.application.load_generators end |
#require_application_and_environment!(group = :default) ⇒ Object
def set_application_directory!
Dir.chdir(File.("../..", APP_PATH)) unless File.exist?(File.("config.ru"))
end
11 12 13 14 15 16 |
# File 'lib/charyf/utils/command/actions.rb', line 11 def require_application_and_environment!(group = :default) if defined?(APP_PATH) require APP_PATH Charyf.application.initialize!(group) end end |
#start_interfaces! ⇒ Object
22 23 24 |
# File 'lib/charyf/utils/command/actions.rb', line 22 def start_interfaces! Charyf.application.start_interfaces end |
#start_pipeline! ⇒ Object
26 27 28 |
# File 'lib/charyf/utils/command/actions.rb', line 26 def start_pipeline! Charyf.application.start_pipeline end |