Skip to content

Commit

Permalink
Move install checking into helper
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Aug 28, 2013
1 parent 38f1be1 commit 47a657b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/vagabond/helpers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Helpers
module Base

def base_setup(*args)
@options = @options.dup
@options = Mash.new(@options.dup)
@vagabondfile = Vagabondfile.new(options[:vagabond_file], :allow_missing)
Lxc.use_sudo = sudo
options[:sudo] = sudo
Expand Down Expand Up @@ -95,6 +95,10 @@ def execute
end
end

def lxc_installed?
system('which lxc-info > /dev/null')
end

class << self
def included(klass)
klass.class_eval do
Expand Down

0 comments on commit 47a657b

Please sign in to comment.