Sha256: e625d96d6ded3a7557b122276fe51970db7c684057d3c4bf8cd8d61de0e41b8d
Contents?: true
Size: 544 Bytes
Versions: 6
Compression:
Stored size: 544 Bytes
Contents
LuxCli.class_eval do desc 'new APP_NAME', 'Creates new lux application' def new app_folder Cli.die 'Folder allready exists' if Dir.exist?(app_folder) Dir.mkdir(app_folder) demo_path = Pathname.new(__dir__).join('../../misc/demo').to_s Cli.run "rsync -a -v --ignore-existing '#{demo_path}/' ./#{app_folder}" Dir.chdir(app_folder) do Cli.run "bundle install" Cli.run "bundle exec lux_assets install" end puts puts 'Success! now:'.green puts 'cd %s' % app_folder puts 'lux s' end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
lux-fw-0.5.37 | ./bin/cli/new.rb |
lux-fw-0.5.36 | ./bin/cli/new.rb |
lux-fw-0.5.35 | ./bin/cli/new.rb |
lux-fw-0.5.34 | ./bin/cli/new.rb |
lux-fw-0.5.33 | ./bin/cli/new.rb |
lux-fw-0.5.32 | ./bin/cli/new.rb |