Sha256: 181154e4f7e6c738a1b30a69bd4033bdf59eac2ab56dc156b2eca5637dfb5977

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

require 'opsworks/stack'

module OpsWorks
  module CLI
    module Helpers
      module Typecasts
        def typecast_string_argument(arg)
          case arg
          when 'true' then true
          when 'false' then false
          else arg
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opsworks-cli-0.5.0 lib/opsworks/cli/helpers/typecasts.rb
opsworks-cli-0.4.5 lib/opsworks/cli/helpers/typecasts.rb
opsworks-cli-0.4.4 lib/opsworks/cli/helpers/typecasts.rb
opsworks-cli-0.4.3 lib/opsworks/cli/helpers/typecasts.rb
opsworks-cli-0.4.2 lib/opsworks/cli/helpers/typecasts.rb
opsworks-cli-0.4.1 lib/opsworks/cli/helpers/typecasts.rb