Skip to content

Commit

Permalink
make it work with new rails
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jun 29, 2011
1 parent d93bb57 commit 410d242
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@ BDSM - https://bdsm.beginrescueend.com/

Shortly it should be possible to install using following command (this does not work yet)

bdsm extend mpapis/bdsm_backup as backup
bdsm extend mpapis/bdsm_backup backup

## usage
create simple backup script
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.0.2
0.0.4
6 changes: 6 additions & 0 deletions actions/console
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

bash --rcfile <(echo "
export PS1='(backup) ${PS1:-\u@\h:\w>}'
. /usr/local/bdsm/extensions/backup/modules/shell/initialize
") -i
11 changes: 1 addition & 10 deletions actions/help
@@ -1,12 +1,3 @@
#!/usr/bin/env bash

description "Backup your data with easy"

action "setup [name] [-f]" "Generate basic backup script, use -f to overwrite existing file"
action "edit [name]" "Edit backup script in your favorite editor"
action "examples" "show examples scripts for bdsm backup"
#action "install [name]" "Add backup script to cron."
#action "uninstall [name]" "Remove backup script from cron."
#action "run [name]" "Run script"

show_help usage
help
14 changes: 14 additions & 0 deletions modules/shell/dsl
@@ -1,5 +1,19 @@
#!/usr/bin/env bash

help()
{
description "Backup your data with easy"

action "setup [name] [-f]" "Generate basic backup script, use -f to overwrite existing file"
action "edit [name]" "Edit backup script in your favorite editor"
action "examples" "show examples scripts for bdsm backup"
#action "install [name]" "Add backup script to cron."
#action "uninstall [name]" "Remove backup script from cron."
#action "run [name]" "Run script"

show_help usage
}

# usage:
# backup_dir directory
# ensures that the given directory exists and sets it as target for backups
Expand Down
2 changes: 1 addition & 1 deletion modules/shell/initialize
Expand Up @@ -7,4 +7,4 @@
modules templates filesystem

#Load backup framework
. "/usr/local/bdsm/extensions/backup/modules/shell/dsl"
. "/usr/local/bdsm/extensions/external/backup/modules/shell/dsl"

0 comments on commit 410d242

Please sign in to comment.