Sha256: c26e192c990d2dd2a47ac3c0274f8e182cdc87f7d9608326b657db70e924fcf0

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

wright
======

Lightweight configuration management.

Requirements
------------

 - Ruby ≥1.9

Documentation
-------------

There is not too much useful documentation that is targeted towards
users at the moment.

Run `bundle exec rake rdoc` to generate HTML docs for wright
developers.

Hacking
-------

To get started with wright, simply install the development
dependencies via bundler:

 - `bundle install --path .bundle`
 - `bundle exec rake test`

All tests should pass.

Getting Started
---------------

To start a wright IRB session, simply run:

    $ bundle console

In order to create some resources using the wright DSL:

    extend Wright::DSL
    
    foo_dir = directory '/tmp/foo'
    fstab = symlink '/tmp/foo/fstab' do |s|
      s.to = '/etc/fstab'
    end
    
    puts File.directory? '/tmp/foo'
    puts File.symlink? '/tmp/foo/fstab'
    
    fstab.remove
    foo_dir.remove

If you don't want to use the DSL:

    foo_dir = Wright::Resource::Directory.new('/tmp/foo')
    foo_dir.create
    fstab = Wright::Resource::Symlink.new('/tmp/foo/fstab')
    fstab.to = '/etc/fstab'
    fstab.create
   
    puts File.directory? '/tmp/foo'
    puts File.symlink? '/tmp/foo/fstab'
    
    fstab.remove
    foo_dir.remove

Copyright
---------

Copyright (c) 2012-2015 Sebastian Boehm. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wright-0.1.0 README.md