Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Un-optional the non-optional commands. #146

Merged
merged 1 commit into from
May 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/puppet/provider/vcsrepo/bzr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Puppet::Type.type(:vcsrepo).provide(:bzr, :parent => Puppet::Provider::Vcsrepo) do
desc "Supports Bazaar repositories"

optional_commands :bzr => 'bzr'
commands :bzr => 'bzr'
has_features :reference_tracking

def create
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/vcsrepo/cvs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo) do
desc "Supports CVS repositories/workspaces"

optional_commands :cvs => 'cvs'
commands :cvs => 'cvs'
has_features :gzip_compression, :reference_tracking, :modules, :cvs_rsh

def create
Expand Down
5 changes: 3 additions & 2 deletions lib/puppet/provider/vcsrepo/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
desc "Supports Git repositories"

##TODO modify the commands below so that the su - is included
optional_commands :git => 'git',
:su => 'su'
commands :git => 'git'
optional_commands :su => 'su'

has_features :bare_repositories, :reference_tracking, :ssh_identity, :multiple_remotes, :user, :depth

def create
Expand Down
5 changes: 3 additions & 2 deletions lib/puppet/provider/vcsrepo/hg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
Puppet::Type.type(:vcsrepo).provide(:hg, :parent => Puppet::Provider::Vcsrepo) do
desc "Supports Mercurial repositories"

optional_commands :hg => 'hg',
:su => 'su'
commands :hg => 'hg'
optional_commands :su => 'su'

has_features :reference_tracking, :ssh_identity, :user

def create
Expand Down
6 changes: 3 additions & 3 deletions lib/puppet/provider/vcsrepo/svn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo) do
desc "Supports Subversion repositories"

optional_commands :svn => 'svn',
:svnadmin => 'svnadmin',
:svnlook => 'svnlook'
commands :svn => 'svn',
:svnadmin => 'svnadmin',
:svnlook => 'svnlook'

has_features :filesystem_types, :reference_tracking, :basic_auth, :configuration

Expand Down