Sha256: a1bfc63a15a0d880a3dfc474505d04dfe785847f9e320e500fe063b56ac258f4

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

require 'thor'

module Lazyman
	class CLI < Thor	
		include Thor::Actions

		argument :app_name, required: false

		def self.source_root
			File.join File.dirname(__FILE__), 'generators'
		end

		desc 'create project', 'create a lazyman project'

		def new
			if app_name
				directory 'lazyman', app_name
			else
				say 'no app name'
			end 
		end
		
	end
CLI.start

end #Lazyman

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lazyman-0.1.2 lib/lazyman/cli.rb
lazyman-0.1.1 lib/lazyman/cli.rb
lazyman-0.1.0 lib/lazyman/cli.rb