Module: Capistrano::DSL::Env

### Home Classes Methods

### In Files

- lib/capistrano/dsl/env.rb

### Methods

- #any?
- #ask
- #asset_timestamp
- #configure_backend
- #delete
- #env
- #fetch
- #primary
- #release_roles
- #release_timestamp
- #role
- #role_properties
- #roles
- #server
- #set
- #set_if_empty

### Files

- Capfile
- Capfile

### Class/Module Index

Quicksearch

- Capistrano
- Capistrano::Application
- Capistrano::Configuration
- Capistrano::Configuration::Filter
- Capistrano::Configuration::Question
- Capistrano::Configuration::Server
- Capistrano::Configuration::Server::Properties
- Capistrano::Configuration::Servers
- Capistrano::DSL
- Capistrano::DSL::Env
- Capistrano::DSL::Paths
- Capistrano::DSL::Stages
- Capistrano::Git
- Capistrano::Git::DefaultStrategy
- Capistrano::Hg
- Capistrano::Hg::DefaultStrategy
- Capistrano::SCM
- Capistrano::Svn
- Capistrano::Svn::DefaultStrategy
- Capistrano::TaskEnhancements
- Capistrano::UploadTask
- Capistrano::VersionValidator
- Object

No matching classes.

# Capistrano::DSL::Env

### Public Instance Methods

any?(key) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 13
    def any?(key)
      value = fetch(key)
      if value && value.respond_to?(:any?)
        value.any?
      else
        !fetch(key).nil?
      end
    end

ask(key, value, options={}) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 34
    def ask(key, value, options={})
      env.ask(key, value, options)
    end

asset_timestamp() click to toggle source

    # File lib/capistrano/dsl/env.rb, line 75
    def asset_timestamp
      env.timestamp.strftime("%Y%m%d%H%M.%S")
    end

configure_backend() click to toggle source

    # File lib/capistrano/dsl/env.rb, line 5
    def configure_backend
      env.configure_backend
    end

delete(key) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 30
    def delete(key)
      env.delete(key)
    end

env() click to toggle source

    # File lib/capistrano/dsl/env.rb, line 67
    def env
      Configuration.env
    end

fetch(key, default=nil, &block) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 9
    def fetch(key, default=nil, &block)
      env.fetch(key, default, &block)
    end

primary(role) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 63
    def primary(role)
      env.primary(role)
    end

release_roles(*names) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 54
    def release_roles(*names)
      if names.last.is_a? Hash
        names.last.merge!({ :exclude => :no_release })
      else
        names << { exclude: :no_release }
      end
      roles(*names)
    end

release_timestamp() click to toggle source

    # File lib/capistrano/dsl/env.rb, line 71
    def release_timestamp
      env.timestamp.strftime("%Y%m%d%H%M%S")
    end

role(name, servers, options={}) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 38
    def role(name, servers, options={})
      env.role(name, servers, options)
    end

role_properties(*names, &block) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 50
    def role_properties(*names, &block)
      env.role_properties_for(names, &block)
    end

roles(*names) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 46
    def roles(*names)
      env.roles_for(names.flatten)
    end

server(name, properties={}) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 42
    def server(name, properties={})
      env.server(name, properties)
    end

set(key, value) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 22
    def set(key, value)
      env.set(key, value)
    end

set_if_empty(key, value) click to toggle source

    # File lib/capistrano/dsl/env.rb, line 26
    def set_if_empty(key, value)
      env.set_if_empty(key, value)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.