Module: CloudFrontCommands

Included in:
S3CmdDSL
Defined in:
lib/dsl/commands/cloudfront_commands.rb

Instance Method Summary collapse

Instance Method Details

#cfcreate(bucket) ⇒ Object Also known as: cloudfront_create, cloudfront_make, cfmake, cfmk

Create CloudFront distribution point



20
21
22
23
# File 'lib/dsl/commands/cloudfront_commands.rb', line 20

def cfcreate(bucket) # s3://BUCKET
  @commands[:cfcreate] = bucket
  self
end

#cfdelete(dist_id) ⇒ Object Also known as: cloudfront_delete

Delete CloudFront distribution point



30
31
32
33
# File 'lib/dsl/commands/cloudfront_commands.rb', line 30

def cfdelete(dist_id) # cf://DIST_ID
  @commands[:cfdelete] = dist_id
  self
end

#cfinfo(dist_id) ⇒ Object Also known as: cloudfront_info

Display CloudFront distribution point parameters



13
14
15
16
# File 'lib/dsl/commands/cloudfront_commands.rb', line 13

def cfinfo(dist_id) # [cf://DIST_ID]
  @commands[:cfinfo] = dist_id
  self
end

#cflistObject Also known as: cloudfront_list, cloudfront_ls, cfls

Commands for CloudFront management List CloudFront distribution points



4
5
6
7
# File 'lib/dsl/commands/cloudfront_commands.rb', line 4

def cflist
  @commands[:cflist] = ''
  self
end

#cfmodify(dist_id) ⇒ Object Also known as: cloudfront_modify

Change CloudFront distribution point parameters



37
38
39
40
# File 'lib/dsl/commands/cloudfront_commands.rb', line 37

def cfmodify(dist_id) # cf://DIST_ID
  @commands[:cfmodify] = dist_id
  self
end