Sha256: 86370b11c81d2e5a0d43e81de142a7c7b1fbb05f3199ac5391a6392633c0fc61

Contents?: true

Size: 550 Bytes

Versions: 11

Compression:

Stored size: 550 Bytes

Contents

module CustomizableBootstrap
  module Generators
    module Utils
      def output(output, color = :green)
        say("           -  #{output}", color)
      end

      def ask_for(wording, default_value = nil, override_if_present_value = nil)
        override_if_present_value.present? ?
          display("Using [#{override_if_present_value}] for question '#{wording}'") && override_if_present_value :
          ask("           ?  #{wording} Press <enter> for [#{default_value}] >", :yellow).presence || default_value
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
customizable_bootstrap-0.11.1 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.11.0 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.10.5 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.10.4 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.10.3 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.10.2 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.10.1 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.9.5 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.9.4 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.9.1 lib/generators/customizable_bootstrap/utils.rb
customizable_bootstrap-0.9.0 lib/generators/customizable_bootstrap/utils.rb