Skip to content

Commit

Permalink
Implement "bare" environment type
Browse files Browse the repository at this point in the history
This type has no content besides environment-attached modules
  • Loading branch information
reidmv committed Oct 17, 2019
1 parent f68bfda commit 4e57af5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/r10k/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def self.from_hash(name, hash)

require 'r10k/environment/base'
require 'r10k/environment/with_modules'
require 'r10k/environment/bare'
require 'r10k/environment/git'
require 'r10k/environment/svn'
end
Expand Down
16 changes: 16 additions & 0 deletions lib/r10k/environment/bare.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class R10K::Environment::Bare < R10K::Environment::WithModules

R10K::Environment.register(:bare, self)

def sync
path.mkpath
end

def status
:not_applicable
end

def signature
'bare-default'
end
end

0 comments on commit 4e57af5

Please sign in to comment.