Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created October 24, 2014 20:08
Show Gist options
  • Save groovecoder/1b4872198a9fa2d62354 to your computer and use it in GitHub Desktop.
Save groovecoder/1b4872198a9fa2d62354 to your computer and use it in GitHub Desktop.
# Get stylus
class stylus {
exec { 'stylus-install':
command => '/usr/bin/npm install -g stylus@0.43.1',
creates => '/usr/bin/stylus',
require => [
Package['nodejs'],
]
}
file { '/usr/local/bin/stylus':
ensure => link,
target=> "/usr/bin/stylus",
require => Exec['stylus-install'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment