class Zoku::Generator
Public Instance Methods
check()
click to toggle source
# File lib/zoku/cli.rb, line 48 def check puts 'Checking to see if you are online...' count = options[:packets] ? options[:packets] : 2 result = (`ping 8.8.8.8 -c #{count} | grep transmitted`).to_s if result.include?('100.0% packet loss') puts 'womp womp' else puts 'hooray, it looks like you may be online!' end end
init(path)
click to toggle source
# File lib/zoku/cli.rb, line 37 def init(path) puts path end
new(target_path)
click to toggle source
# 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
version()
click to toggle source
# File lib/zoku/cli.rb, line 12 def version puts "Zoku #{Zoku::VERSION}" end