Sha256: b365d4abd913eeb5a494f15e919ca46ea9bfb2f1ff7bab8ac4c3e2beb418b0e5

Contents?: true

Size: 601 Bytes

Versions: 10

Compression:

Stored size: 601 Bytes

Contents

module Middleman
  module Cli

    class BaseCDN
      def self.example_configuration
        config_lines = self.example_configuration_elements.map do |config_key, config_info|
          "    #{config_key.to_s}: #{config_info[0]},".ljust(30) + " #{config_info[1]}"
        end

        <<-TEXT
  cdn.#{self.key} = {
#{config_lines.join("\n")}
  }
        TEXT
      end

      def say_status(status, newline: true, header: true, wait_enter: false)
        ::Middleman::Cli::CDN.say_status(self.class.key, status, newline: newline, header: header, wait_enter: wait_enter)
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
middleman-cdn-0.3.2 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.3.1 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.3.0 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.2.0 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.1.16 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.1.15 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.1.14 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.1.13 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.1.11 lib/middleman-cdn/cdns/base.rb
middleman-cdn-0.1.10 lib/middleman-cdn/cdns/base.rb