Sha256: ad0eb76848cf0780a9989e580f955694e37e21eaebd9f707f99ab28c8e3532d7

Contents?: true

Size: 429 Bytes

Versions: 11

Compression:

Stored size: 429 Bytes

Contents

module Veewee
  module Command
    module Helpers
      # Initializes the environment by pulling the environment out of
      # the configuration hash and sets up the UI if necessary.
      def initialize_environment(args, options, config)
        raise Errors::CLIMissingEnvironment if !config[:env]
        @env = config[:env]
        @env.cwd = File.expand_path(@options[:cwd]) if @options[:cwd]
      end

     end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 lib/veewee/command/helpers.rb
veewee-0.5.0.alpha3 lib/veewee/command/helpers.rb
veewee-0.5.0.alpha2 lib/veewee/command/helpers.rb
veewee-0.5.0.alpha1 lib/veewee/command/helpers.rb
veewee-0.4.5.1 lib/veewee/command/helpers.rb
veewee-0.4.5 lib/veewee/command/helpers.rb
veewee-0.4.5.pre1 lib/veewee/command/helpers.rb
veewee-0.4.4 lib/veewee/command/helpers.rb
veewee-0.4.3 lib/veewee/command/helpers.rb
veewee-0.4.2 lib/veewee/command/helpers.rb
veewee-0.4.1 lib/veewee/command/helpers.rb