lib/feefi/aws/beanstalk.rb
# gets the current EB OS Environment variables for the deployed app on a
# current eb environment, overloaded term. eb environments are
# arbitrary and are loosely similar to a Rails env. 
gets the current EB OS Environment variables for the deployed app on a
current eb environment, overloaded term. eb environments are
arbitrary and are loosely similar to a Rails env.
gets the current EB OS Environment variables for the deployed app on a current eb environment overloaded term . eb environments are arbitrary and are loosely similar to a Rails env .
def list_variables(eb_env_name)
      begin
        body = beanstalk_connection.describe_configuration_settings("ApplicationName" => @config.name, "EnvironmentName" => eb_env_name).body
        current_env_variables = body['DescribeConfigurationSettingsResult']['ConfigurationSettings'].first['OptionSettings'].select \
          {|ea| ea['Namespace'] == ENV_NAMESPACE}
      rescue Fog::AWS::ElasticBeanstalk::InvalidParameterError => e
        puts "An error occurred connecting to Beanstalk. Check your options!"
        puts e
        exit
      end
    end
def list_variables ( eb_env_name ) begin body = beanstalk_connection . describe_configuration_settings ( "ApplicationName" => @config . name , "EnvironmentName" => eb_env_name ) . body current_env_variables = body [ 'DescribeConfigurationSettingsResult' ] [ 'ConfigurationSettings' ] . first [ 'OptionSettings' ] . select { | ea | ea [ 'Namespace' ] == ENV_NAMESPACE } rescue Fog :: AWS :: ElasticBeanstalk :: InvalidParameterError => e puts "An error occurred connecting to Beanstalk. Check your options!" puts e exit end end
gets the current EB OS Environment variables for the deployed app on a
current eb environment, overloaded term.
gets the current EB OS Environment variables for the deployed app on a current eb environment overloaded term .
eb_env_name
<not_specific>