Class: AwsDeploy::IndexController

Inherits:
AwsDeployApplicationController show all
Includes:
AwsDeploy::Index::Version
Defined in:
app/controllers/aws_deploy/index_controller.rb

Instance Method Summary collapse

Methods inherited from AwsDeployApplicationController

#_aws_access_key_id, #_aws_bucket, #_aws_secret_access_key, #_exist_config?, #_md5_file, #_zip_file, #authenticate, #aws_secret?

Instance Method Details

#indexObject



9
10
11
12
# File 'app/controllers/aws_deploy/index_controller.rb', line 9

def index
  @exist_config = _exist_config?
  @version = _get_version_file
end

#send_to_productionObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/controllers/aws_deploy/index_controller.rb', line 16

def send_to_production

  if (aws_secret?(params[:aws_secret][0]))

    message = _move_to params[:env]
    flash[:message] = "#{message}"

  else 
    flash[:message] = "AWS Secret is Invalid! ... #{params[:env]}"

  end

  redirect_to aws_deploy_root_awsdeploy_path
end