Created
January 5, 2009 14:47
-
-
Save marks/43416 to your computer and use it in GitHub Desktop.
Swift Helper for Adhearsion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example usage of say_swift: | |
say_swift("Welcome to the ABC PBX") | |
say_swift("#{action}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Helpers by Mark S. - mark@marksilver.net | |
def say_swift(text) | |
text = %{"#{text}"} | |
execute 'swift', text.to_s | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if require('helpers.rb') # (you may need to tweak the file path depending where you put helpers.rb) | |
ahn_log "Loaded helper functions of config/helpers.rb" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment