Browse files

Merge branch 'master' of github.com:sm/sm_apidoc

  • Loading branch information...
2 parents f33f2a9 + 3a9a2e5 commit 7da0b46eff95a81df32e27e380c107b436dfb2b2 @wayneeseguin wayneeseguin committed Apr 3, 2012
View
28 bin/assert/string
@@ -4,3 +4,31 @@ set -v # Turn on verbose logging, so that the following will present a tutorial.
# assert module api is loaded with the line 'api/assert' in shell/includes.
+if assert string "test" equals "test"
+then
+ log "The string test is equal to test!"
+else
+ log "The string test is not equal to test!"
+fi
+
+if assert string "test" equals "fail"
+then
+ log "The string test is equal to fail!"
+else
+ log "The string test is not equal to fail!"
+fi
+
+if assert string "" is empty
+then
+ log "The string is empty!"
+else
+ log "The string is not empty!"
+fi
+
+if assert string "non empty" is nonempty
+then
+ log "The string is non empty!"
+else
+ log "The string is empty!"
+fi
+
View
13 bin/interactive/shell
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -v # Turn on verbose logging, so that the following will present a tutorial.
+
+# interactive(s) module is loaded with line 'api/interactive' in an
+# extension's shell/includes file.
+
+if shell is interactive
+then
+ log "This shell is interactive!"
+else
+ log "This shell is not interactive."
+fi
View
1 bin/service/activate
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/cli
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/confd
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/configcheck
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/deactivate
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/info
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/initd
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/initialize
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/list
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/logtail
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/pid
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/reload
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/restart
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/setup
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/signal
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/start
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/status
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/stop
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/uninstall
@@ -1 +0,0 @@
-#!/bin/sh
View
1 bin/service/usage
@@ -1 +0,0 @@
-#!/bin/sh

0 comments on commit 7da0b46

Please sign in to comment.