Sha256: d890b76afc7e832a7ae6288aeaaa320f1daa239258452ec3d04488ee237ebb66
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
command 'view amazon setup' do |c| c.syntax = 'datapimp view amazon setup' c.description = 'view the amazon (s3 + cloudfront) setup' Datapimp::Cli.accepts_keys_for(c, :amazon) c.action do |args, options| bucket = Datapimp::Sync::S3Bucket.new(remote: args.first) cloudfront = bucket.cloudfront require 'terminal-table' rows = [] rows << ["Bucket Name", bucket.remote] rows << ["Website Hostname", bucket.website_hostname] rows << ["Website URL", bucket.website_url] rows << ["Cloudfront Hostname", cloudfront.domain] table = Terminal::Table.new :rows => rows, :headings => %w(Setting Value) puts table end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datapimp-1.0.11 | lib/datapimp/cli/view.rb |
datapimp-1.0.10 | lib/datapimp/cli/view.rb |