class Kia::CLI
Public Instance Methods
build()
click to toggle source
# File lib/kia/cli.rb, line 27 def build if File.exist?("config.ru") Kia::Commands::Build.start else puts "Hold on mate, you'll need to initialize a Kia project (kia init NAME) to be able to make posts." end end
create(name)
click to toggle source
# File lib/kia/cli.rb, line 12 def create(name) Kia::Commands::Create.start([name]) puts "The project, #{name}, was created successfully" end
post(name)
click to toggle source
# File lib/kia/cli.rb, line 18 def post(name) if File.exist?("config.ru") Kia::Commands::Post.start([name]) else puts "Hold on mate, you'll need to initialize a Kia project (kia init NAME) to be able to make posts." end end
server()
click to toggle source
# File lib/kia/cli.rb, line 36 def server if File.exist?("config.ru") Kia::Commands::Serve.start else puts "Hold on mate, you'll need to initialize a Kia project (kia init NAME) to be able to make posts." end end