Sha256: a7e8e4325adb31153689d0b3d19ffc6b3751370ac3e384e5c88223016a74461a

Contents?: true

Size: 686 Bytes

Versions: 77

Compression:

Stored size: 686 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real

        def login_banner_edit(data)
          validate_data([:display], data)
          body = build_login_banner_edit(data)
          request(
            :expects => 200,
            :method => 'PUT',
            :headers => {},
            :body => body,
            :uri => data[:uri],
            :parse => true
          )
        end

        private

        
        def build_login_banner_edit(data)
          xml = Builder::XmlMarkup.new
          xml.LoginBanner do
            xml.Display data[:display]
            xml.Text data[:text] if data[:text]
          end    
        end
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 12 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-1.20.0 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-1.19.0 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb