Sha256: 5b8d4c89e43446153d55aa82d53641c9b281895f99e19a29a1a2d5d654082272

Contents?: true

Size: 672 Bytes

Versions: 17

Compression:

Stored size: 672 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

17 entries across 17 versions & 5 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-ecloud-0.0.2 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-ecloud-0.0.1 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-1.25.0 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
nsidc-fog-1.24.1 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-1.24.0 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.11 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.10 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.9 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.8 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.7 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.6 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-1.23.0 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.4 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.3 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
ns-fog-1.22.2 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb
fog-1.22.1 lib/fog/ecloud/requests/compute/admin_edit_login_banner.rb