Sha256: 31ef1fe417f68f016b9c53687addc532a5b22ec457b869b5d9e2d1170188970e

Contents?: true

Size: 668 Bytes

Versions: 7

Compression:

Stored size: 668 Bytes

Contents

require 'engineyard-serverside/cli/workflows/base'
require 'engineyard-serverside/deploy_hook'

module EY
  module Serverside
    module CLI
      module Workflows

        # CallingDeployHooks is a Workflow that, given a hook_name option,
        # executes the requested deploy hook
        class CallingDeployHooks < Base
          private
          def procedure
            EY::Serverside::DeployHook.
              new(config, shell, hook_name).
              call

          end

          def task_name
            "hook-#{hook_name}"
          end

          def hook_name
            options[:hook_name]
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
engineyard-serverside-2.7.0.pre lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb
engineyard-serverside-2.6.19 lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb
engineyard-serverside-2.6.17 lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb
engineyard-serverside-2.6.16 lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb
engineyard-serverside-2.6.15.alpha1 lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb
engineyard-serverside-2.6.15.cf2 lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb
engineyard-serverside-2.6.15.pre lib/engineyard-serverside/cli/workflows/calling_deploy_hooks.rb