Class: AwsDeploy::IndexController
Instance Method Summary
collapse
#_aws_access_key_id, #_aws_bucket, #_aws_secret_access_key, #_exist_config?, #_md5_file, #_zip_file, #authenticate, #aws_secret?
Instance Method Details
#index ⇒ Object
10
11
12
13
14
|
# File 'app/controllers/aws_deploy/index_controller.rb', line 10
def index
@exist_config = _exist_config?
@version = _get_version_file()
@envs = _get_envs()
end
|
#send_to_production ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'app/controllers/aws_deploy/index_controller.rb', line 18
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
|