Sha256: a294002a18bb99b9132dce953911bc902c330b3a360d3ae417d99dfb5f3cbcbe

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

require 'capistrano'
  module Capistrano
    module Fakerecipe
      def self.load_into(configuration)
        configuration.load do
          before "fake:before_this_execute_thing", "fake:thing"
          before "fake:before_this_also_execute_thing", "fake:thing"
          after "fake:after_this_execute_thing", "fake:thing"
          after "fake:after_this_also_execute_thing", "fake:thing"
          namespace :fake do
            desc "thing and run fake manifests"
            task :thing do
              set :bar, "baz"
              run('do some stuff')
              upload("foo", "/tmp/foo")
              get('/tmp/baz', 'baz')
            end
            desc "More fake tasks!"
            task :before_this_execute_thing do
              #
            end
            desc "You get the picture..."
            task :before_this_also_execute_thing do
              #
            end
            task :after_this_execute_thing do
              #
            end
            task :after_this_also_execute_thing do
              #
            end
          end
        end
      end
    end
  end

  if Capistrano::Configuration.instance
    Capistrano::FakeRecipe.load_into(Capistrano::Configuration.instance)
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-spec-0.4.0 spec/recipe/fakerecipe.rb