Sha256: 57cbebe297139eb32ac346c7800fbff5d267845b1dcd26c0ec39ba002966382a

Contents?: true

Size: 1.51 KB

Versions: 3

Compression:

Stored size: 1.51 KB

Contents

namespace :eve do
  namespace :install do
    desc "Download all dependent plugins"
    task :plugins do
      paperclip = 'git clone git://github.com/thoughtbot/paperclip.git'
      awesome_nested_set = 'git clone git://github.com/collectiveidea/awesome_nested_set.git'
      restful_authentication = 'git clone git://github.com/technoweenie/restful-authentication.git restful_authentication'
      plugins = [paperclip, awesome_nested_set, restful_authentication]
      puts "PLUGINS TO INSTALL"
      puts restful_authentication
      puts paperclip
      puts awesome_nested_set
    end
    
    desc "Download all dependent gems"
    task :gems do
      gems = ['rspec-rails', 'rubyist-aasm', 'restfulx', 'tlsmail']
      puts "Please type in sudo password: "
      command = 'sudo gem install '
      install_dependencies(command, gems)
    end
    
    desc "Download fourD's emergent actionscript library"
    task :core do
      system 'rm -rfv emergent'
      system 'git clone git@github.com:viatropos/emergent.git'
      system 'mv emergent/src/com app/flex'
      system 'rm -rfv emergent'
      puts 'Successfully installed the FourD Emergent library into:'
      puts 'app/flex/com...'
    end
    
    desc "Download all EVE dependencies"
    task :all => [:plugins, :gems, :core]
  end
  def install_dependencies(command, dependencies)
    dependencies.each do |dependency|
      # 'system' is a Kernel method, a core class in Ruby, allowing you to run shell commands
      system command.concat(dependency)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/core/emergent_tasks.rake
emergent-core-0.1.01 rails_generators/emergent_config/templates/core/emergent_tasks.rake
emergent-core-0.1.02 rails_generators/emergent_config/templates/core/emergent_tasks.rake