Sha256: 89c92157eed65615ce0f01d43556feaa29a18a510a8acfc22ec049b1c3331e8b

Contents?: true

Size: 1.07 KB

Versions: 19

Compression:

Stored size: 1.07 KB

Contents

#!/usr/bin/env ruby

require 'fileutils'

dir = File.dirname(__FILE__)

new_application_dir = "#{dir}/../lib/new_application"

@command = ARGV[0]

if @command == "init"

  # Create the structure for a YMDP project

  @project_name = ARGV[1]

  @message = <<MESSAGE
Creating YMDP directory for project #{@project_name}

First, run:

  gem bundle

Then:

  ./script/config

Then open config.yml and set your username and password.
Then open servers.yml and set your server keys.

Then run:

  bin/rake create:all

to fetch your applications from Yahoo! Mail's servers.

MESSAGE

  puts @message

  FileUtils.mkdir_p(@project_name)
  FileUtils.cp_r("#{new_application_dir}/.", @project_name)
elsif @command == "update"
  puts "Updating scripts..."
  FileUtils.cp_r(Dir.glob("#{new_application_dir}/config/*.example"), "./config", :verbose => true)
  FileUtils.cp_r("#{new_application_dir}/lib/tasks/.", "./lib/tasks", :verbose => true)
  FileUtils.cp_r("#{new_application_dir}/script/.", "./script", :verbose => true)
  FileUtils.cp_r("#{new_application_dir}/ymdp", "./", :verbose => true)
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ymdp-0.1.8.1 bin/ymdp
ymdp-0.1.8 bin/ymdp
ymdp-0.1.7 bin/ymdp
ymdp-0.1.6 bin/ymdp
ymdp-0.1.4 bin/ymdp
ymdp-0.1.3.2 bin/ymdp
ymdp-0.1.3.1 bin/ymdp
ymdp-0.1.3 bin/ymdp
ymdp-0.1.1 bin/ymdp
ymdp-0.1.0 bin/ymdp
ymdp-0.0.17 bin/ymdp
ymdp-0.0.16 bin/ymdp
ymdp-0.0.15 bin/ymdp
ymdp-0.0.14 bin/ymdp
ymdp-0.0.13 bin/ymdp
ymdp-0.0.12 bin/ymdp
ymdp-0.0.11 bin/ymdp
ymdp-0.0.10 bin/ymdp
ymdp-0.0.9 bin/ymdp