More sessions
This commit is contained in:
52
tmp/dalmatian/tool-outputs/read_file_159.txt
Normal file
52
tmp/dalmatian/tool-outputs/read_file_159.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
module Dalmatian
|
||||
class AuroraDeployment
|
||||
include Deployable
|
||||
|
||||
def initialize(
|
||||
aurora:,
|
||||
env:,
|
||||
auto_approve: false,
|
||||
plan: false,
|
||||
destroy: false,
|
||||
verbose: false
|
||||
)
|
||||
@aurora = aurora
|
||||
@env = env
|
||||
@helper = Helper
|
||||
@logger = Logger
|
||||
@auto_approve = auto_approve
|
||||
@plan = plan
|
||||
@destroy = destroy
|
||||
@verbose = verbose
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
attr_reader :aurora, :env, :helper, :logger, :auto_approve, :plan, :destroy, :verbose
|
||||
|
||||
def target_directory
|
||||
File.join(
|
||||
Infrastructure::APP_ROOT,
|
||||
Infrastructure::PATH,
|
||||
"aurora"
|
||||
)
|
||||
end
|
||||
|
||||
def env_config
|
||||
env_details.merge(
|
||||
"account_id" => aurora.account_id,
|
||||
"infrastructure_name" => aurora.cluster_id,
|
||||
"dalmatian_role" => dalmatian_role,
|
||||
"aurora" => aurora.to_params
|
||||
)
|
||||
end
|
||||
|
||||
def checkout_revision_if_required
|
||||
false
|
||||
end
|
||||
|
||||
def workspace_name
|
||||
[aurora.cluster_id, aurora.identifier, "aurora", env_name].join("-")
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user