Sha256: 48f2c2e15160249532f7666a1e29256d1acfca8b9d2f58558f47a735ccb68691

Contents?: true

Size: 285 Bytes

Versions: 10

Compression:

Stored size: 285 Bytes

Contents

require_relative 'initialize'

def failed(message)
  puts message
  exit 1
end

failed('Please specify directory path.') if ARGV.length == 0
dir = ARGV[0]
failed("Directory #{dir} already exists.") if File.directory?(dir)
`cp -r #{File.expand_path('../../template', __FILE__)} #{dir}`

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
secros-0.2.0 lib/generate.rb
secros-0.1.8 lib/generate.rb
secros-0.1.7 lib/generate.rb
secros-0.1.6 lib/generate.rb
secros-0.1.5 lib/generate.rb
secros-0.1.4 lib/generate.rb
secros-0.1.3 lib/generate.rb
secros-0.1.2 lib/generate.rb
secros-0.1.1 lib/generate.rb
secros-0.1.0 lib/generate.rb