Sha256: e0fa65b8414933f87fc45846f6a2bc6b7e34689319e01611c379a5742cbbb175
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
require 'fileutils' module ClassicCMS class Cli def self.command(arguments) case arguments[0] when 'new' if arguments[1] == nil puts 'hmm you are using the command wrong: classicCMS new [app name]' elsif File::directory? arguments[1] puts 'hmm I think that app already exists!' else app_name = arguments[1] FileUtils.cp_r File.dirname(__FILE__) + '/scaffold', Dir.pwd + "/#{app_name}" puts "#{app_name} created!" end when 'server' puts 'going to start server...' else puts "you are so smart! I don't know what you mean!" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
classicCMS-0.2.3 | lib/classiccms/cli.rb |
classicCMS-0.2.2 | lib/classiccms/cli.rb |