Sha256: 5763486f5281c7f7f9ab8a89a9a11200ae2caf639deecb90c883745d5e9d5b0c

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

require 'thor'
module Keppler
  module CLI
    class Generate < Thor
      desc "search URL", "Search hn.algolia.com for a url mentioned on Hackernews"
      # option :tags
      def new( project_name )
      	gem_path = File.dirname(__FILE__)
      	project_path = Dir.pwd

      	system "cp #{gem_path}/template/index.html #{project_path}/index.html"

      	puts "Gempath: #{gem_path}"
      	puts "project_path: #{project_path}"
        puts "#{project_name} has created"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keppler-2.0.2 lib/keppler/cli/generate.rb
keppler-2.0.1 lib/keppler/cli/generate.rb
keppler-2.0.0 lib/keppler/cli/generate.rb