Class: Rivet::Client
- Inherits:
-
Object
- Object
- Rivet::Client
- Defined in:
- lib/rivet/client.rb
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #run(options) ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
3 4 |
# File 'lib/rivet/client.rb', line 3 def initialize end |
Instance Method Details
#run(options) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rivet/client.rb', line 6 def run() AwsUtils.set_aws_credentials([:profile]) Rivet::Log.level([:log_level]) Rivet::Utils.ensure_minimum_setup group_def = Rivet::Utils.get_definition([:group]) Rivet::Utils.die "The #{[:group]} definition doesn't exist" unless group_def Rivet::Log.info("Checking #{[:group]} autoscaling definition") autoscale_def = Rivet::Autoscale.new([:group],group_def) autoscale_def.show_differences if [:sync] autoscale_def.sync else Rivet::Log.info("use the -s [--sync] flag to sync changes") end end |