Class: Afterlife::Deploy::CdnDeployment
Instance Attribute Summary
Attributes inherited from Deployment
#options
Instance Method Summary
collapse
Methods inherited from Deployment
#initialize, #repo_command
Instance Method Details
#confirmation_message ⇒ Object
28
29
30
31
|
# File 'lib/afterlife/deploy/cdn_deployment.rb', line 28
def confirmation_message
repo.confirmation_message ||
"You are about to deploy the contents of '#{repo.dist_path}' to"
end
|
#initial_message ⇒ Object
24
25
26
|
# File 'lib/afterlife/deploy/cdn_deployment.rb', line 24
def initial_message
repo.dist_path
end
|
#output ⇒ Object
10
11
12
|
# File 'lib/afterlife/deploy/cdn_deployment.rb', line 10
def output
Cdn.url(repo)
end
|
#run ⇒ Object
6
7
8
|
# File 'lib/afterlife/deploy/cdn_deployment.rb', line 6
def run
Exec.run(commands)
end
|
#setup ⇒ Object
14
15
16
17
18
19
20
21
22
|
# File 'lib/afterlife/deploy/cdn_deployment.rb', line 14
def setup
repo.env.set(
'AWS_BUCKET' => Afterlife.current_stage.bucket,
'AWS_REGION' => Afterlife.current_stage.region,
)
repo.env.set!('S3_FULL_PATH' => s3_full_path)
end
|