Sha256: b608d93f410c97514474ad323e2ab41d7ac9a317bfdea690be89d8023da966e1
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 Bytes
Contents
module Rivet class Client def initialize end def run(options) AwsUtils.set_aws_credentials(options[:profile]) Rivet::Log.level(options[:log_level]) unless Dir.exists?(options[:definitions_directory]) Rivet::Utils.die("The autoscale definitions directory doesn't exist") end group_def = Rivet::Utils.get_definition( options[:group], options[:definitions_directory]) unless group_def Rivet::Utils.die "The #{options[:group]} definition doesn't exist" end Rivet::Log.info("Checking #{options[:group]} autoscaling definition") autoscale_def = Rivet::Autoscale.new(options[:group],group_def) autoscale_def.show_differences if options[:sync] autoscale_def.sync else Rivet::Log.info("use the -s [--sync] flag to sync changes") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rivet-1.3.0 | lib/rivet/client.rb |
rivet-1.2.0 | lib/rivet/client.rb |
rivet-1.1.0 | lib/rivet/client.rb |