Class: Zoku::Generator
- Inherits:
-
Thor
- Object
- Thor
- Zoku::Generator
- Defined in:
- lib/zoku/cli.rb
Instance Method Summary collapse
-
#check ⇒ String
Checks to see if the internet is still down.
- #init(path) ⇒ Object
- #new(target_path) ⇒ Object
- #version ⇒ Object
Instance Method Details
#check ⇒ String
Checks to see if the internet is still down
45 |
# File 'lib/zoku/cli.rb', line 45 desc "check", "Check to see if the internet is still down" |
#init(path) ⇒ Object
37 38 39 |
# File 'lib/zoku/cli.rb', line 37 def init(path) puts path end |
#new(target_path) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/zoku/cli.rb', line 24 def new(target_path) Commands::New.new(target_path).init if [:build] puts `docker-compose build` puts `docker-compose run web bundle exec rake db:create db:migrate db:seed` puts `docker-compose up` if [:run] end end |
#version ⇒ Object
12 13 14 |
# File 'lib/zoku/cli.rb', line 12 def version puts "Zoku #{Zoku::VERSION}" end |