Class: Zoku::Generator

Inherits:
Thor
  • Object
show all
Defined in:
lib/zoku/cli.rb

Instance Method Summary collapse

Instance Method Details

#checkString

Checks to see if the internet is still down

Parameters:

  • packets (Hash)

    a customizable set of options

Returns:

  • (String)

    a string containing the current status



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 options[:build]
    puts `docker-compose build`
    puts `docker-compose run web bundle exec rake db:create db:migrate db:seed`
    puts `docker-compose up` if options[:run]
  end
end

#versionObject



12
13
14
# File 'lib/zoku/cli.rb', line 12

def version
  puts "Zoku #{Zoku::VERSION}"
end