Class: Deployments::GemTasks

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/deployments/gem_tasks.rb

Class Method Summary collapse

Class Method Details

.install_tasksObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/deployments/gem_tasks.rb', line 7

def self.install_tasks
  namespace :deployments do
    desc "Push deployments details to the server"
    task :push do
      require 'deployments'

      include Deployments

      project = Project.new('./')
      build = Build.new(ENV['app_env'], project)

      dispatcher = Dispatcher.new(build)
      dispatcher.run

      public_version = PublicVersion.new(project)
      public_version.generate
    end
  end
end