summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-04-18 22:07:49 +0000
committerLuke Kanies <luke@madstop.com>2005-04-18 22:07:49 +0000
commit68409ef1d5edf1486a28ab88808a9fb4f994e91a (patch)
treec20fc0e017105be2bd4e0ee1965f445d178c4d5b /lib
parentcb5f54c9523331beb36839ee0e3147ab77e45e76 (diff)
adding
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@180 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/blink/statechange.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/blink/statechange.rb b/lib/blink/statechange.rb
new file mode 100644
index 000000000..a89029e3e
--- /dev/null
+++ b/lib/blink/statechange.rb
@@ -0,0 +1,30 @@
+#!/usr/local/bin/ruby -w
+
+# $Id$
+
+# the class responsible for actually doing any work
+
+# enables no-op and logging/rollback
+
+module Blink
+ class StateChange
+ attr_accessor :is, :should, :type, :path
+
+ #---------------------------------------------------------------
+ def initialize
+ end
+ #---------------------------------------------------------------
+
+ #---------------------------------------------------------------
+ def forward
+ @type.change(@path,@is,@should)
+ end
+ #---------------------------------------------------------------
+
+ #---------------------------------------------------------------
+ def backward
+ @type.change(@path,@should,@is)
+ end
+ #---------------------------------------------------------------
+ end
+end