Sha256: ecfda485aa1b677ca1ff9f1dab501df7706964a1c1738a27c2e9c6f1abcd3495

Contents?: true

Size: 651 Bytes

Versions: 6

Compression:

Stored size: 651 Bytes

Contents

module VagrantPlugins
  module CFEngine
    module Cap
      module Debian
        module CFEngineInstall
          def self.cfengine_install(machine, config)
            machine.communicate.tap do |comm|
              comm.sudo("mkdir -p #{File.dirname(config.deb_repo_file)} && /bin/echo #{config.deb_repo_line} > #{config.deb_repo_file}")
              comm.sudo("GPGFILE=`tempfile`; wget -O $GPGFILE #{config.repo_gpg_key_url} && apt-key add $GPGFILE; rm -f $GPGFILE")

              comm.sudo("apt-get update")
              comm.sudo("apt-get install -y cfengine-community")
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tnargav-1.2.3 plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb
tnargav-1.2.2 plugins/provisioners/cfengine/cap/debian/cfengine_install.rb