class Egg::CLI
Defines the CLI
interface to egg functions
Public Instance Methods
build()
click to toggle source
# File lib/egg/cli.rb, line 39 def build config = Configuration.load "./egg_config.rb" config.docker_pull_build end
init()
click to toggle source
# File lib/egg/cli.rb, line 11 def init config = Templates["egg_config.rb"] if File.exist?("egg_config.rb") && !options[:force] print "egg has already been initialized! (maybe you want to --force)\n" exit(1) else File.write("egg_config.rb", config.result) print "Wrote example egg_config.rb, customize it to suit your app" end end
readme()
click to toggle source
# File lib/egg/cli.rb, line 23 def readme # Print out the readme readme_path = File.expand_path("../../../doc/README.md", __FILE__) File.open(readme_path, "r") do |f| print(f.read) end end
setup()
click to toggle source
# File lib/egg/cli.rb, line 32 def setup config = Configuration.load "./egg_config.rb" config.run_setup print "Use `docker-compose up` to start your application." end