Sha256: 5ca4445bbbd7bf4737e1872952720d100bda3f27507e4f095e136f87b02ef8e3

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

module Jekyll
	class Bower
		def initialize()
			print "Checking if NPM is available\n"
			fail unless system('which npm')
			print "Great, NPM is available\n"
			print "Checkin if Bower is available\n"
			unless system('which bower')
				print "Bower not available\n"
				print "Installing bower\n"
				system('npm install -g bower')
				print "Installation completed\n"
			else
				print "Great, Bower is available\n"
			end
			print "Resolving dependencies with bower\n"
			unless system('bower install')
				print "Looks like bower is run by a sudo user\n"
				print "Trying with --allow-root\n"
				system('bower install --allow-root')
			end
			print "Bower dependencies resolved successfully\n"
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-bower-1.0.7 lib/jekyll/bower_plugin.rb