Browse Source

Merge pull request #18 from homemade/master

Git submodules
Joshua Timberman 7 years ago
parent
commit
638ce4399a
2 changed files with 2 additions and 0 deletions
  1. 1 0
      providers/default.rb
  2. 1 0
      resources/default.rb

+ 1 - 0
providers/default.rb

@@ -124,6 +124,7 @@ def run_deploy(force = false)
     scm_provider new_resource.scm_provider
     revision new_resource.revision
     repository new_resource.repository
+    enable_submodules new_resource.enable_submodules
     user new_resource.owner
     group new_resource.group
     deploy_to new_resource.path

+ 1 - 0
resources/default.rb

@@ -39,6 +39,7 @@ attribute :strategy, :kind_of => [String, Symbol], :default => :deploy_revision
 attribute :scm_provider, :kind_of => [Class, String, Symbol]
 attribute :revision, :kind_of => String
 attribute :repository, :kind_of => String
+attribute :enable_submodules, :kind_of => [TrueClass, FalseClass], :default => false
 attribute :environment, :kind_of => Hash, :default => {}
 attribute :deploy_key, :kind_of => [String, NilClass], :default => nil
 attribute :force, :kind_of => [TrueClass, FalseClass], :default => false