require 'gli'
require "opsicle/user_profile"
require "opsicle/manageable_layer"
require "opsicle/manageable_instance"
require "opsicle/manageable_stack"

module Opsicle
  class MoveEip

    def initialize(environment)
      @client = Client.new(environment)
      @opsworks = @client.opsworks
      @ec2 = @client.ec2
      stack_id = @client.config.opsworks_config[:stack_id]
      @cli = HighLine.new
      @stack = ManageableStack.new(@client.config.opsworks_config[:stack_id], @opsworks, @cli)
    end

    def execute(options={})
      puts "Stack ID = #{@stack.id}"
      @stack.move_eip
    end
  end
end

require 'gli'
require "opsicle/user_profile"
require "opsicle/manageable_layer"
require "opsicle/manageable_instance"
require "opsicle/manageable_stack"

module Opsicle
  class MoveEip

    def initialize(environment)
      @client = Client.new(environment)
      @opsworks_adpater = OpsworksAdapter.new(@client)
      stack_id = @client.config.opsworks_config[:stack_id]
      @cli = HighLine.new
      @stack = ManageableStack.new(stack_id, @opsworks_adpater.client, @cli)
    end

    def execute(options={})
      puts "Stack ID = #{@stack.id}"
      @stack.move_eip
    end
  end
end

Use opsworks-adatper in move eip
Use opsworks-adatper in move eip
