Class: Spawngebob::CLI
- Inherits:
-
Thor
- Object
- Thor
- Spawngebob::CLI
- Includes:
- Constants
- Defined in:
- lib/spawngebob/cli.rb
Constant Summary
Constants included from Constants
Spawngebob::Constants::BASE_CONFIG_PATH, Spawngebob::Constants::CONFIG_FILE, Spawngebob::Constants::NGINX_CONF, Spawngebob::Constants::NGINX_CONFD_PATH, Spawngebob::Constants::NGINX_CONF_PATH, Spawngebob::Constants::NGINX_DEFAULTS, Spawngebob::Constants::NGINX_DIRS, Spawngebob::Constants::NGINX_HTTP_LOCATION_TEMPLATE, Spawngebob::Constants::NGINX_PATH, Spawngebob::Constants::NGINX_PID, Spawngebob::Constants::NGINX_SERVER_TEMPLATE, Spawngebob::Constants::NGINX_SSL_LOCATION_TEMPLATE, Spawngebob::Constants::NGINX_SSL_SERVER_TEMPLATE, Spawngebob::Constants::NGINX_UPSTREAM_TEMPLATE, Spawngebob::Constants::SCRIPT_DIR
Instance Method Summary collapse
- #check ⇒ Object
- #configure ⇒ Object
- #reload ⇒ Object
- #restart ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Instance Method Details
#configure ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/spawngebob/cli.rb', line 33 def configure # create necessary directories if not exist NGINX_DIRS.each do |d| full_path = File.join(NGINX_PATH, d) if !File.exists? full_path Utils.say_with_time "Directory #{full_path} does not exist, creating..." do FileUtils.mkdir_p(full_path) end end end Runner.boot() end |