Explorar o código

Allow symbol and string names to be passed through (deploy resource does the lookup dance automatically).

Noah Kantrowitz %!s(int64=12) %!d(string=hai) anos
pai
achega
cbb4a4b410
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      resources/default.rb

+ 1 - 1
resources/default.rb

@@ -36,7 +36,7 @@ attribute :path, :kind_of => String
 attribute :owner, :kind_of => String
 attribute :group, :kind_of => String
 attribute :strategy, :kind_of => [String, Symbol], :default => :deploy_revision
-attribute :scm_provider, :kind_of => Class
+attribute :scm_provider, :kind_of => [Class, String, Symbol]
 attribute :revision, :kind_of => String
 attribute :repository, :kind_of => String
 attribute :environment, :kind_of => Hash, :default => {}