Skip to content

Nucc/bw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bonanza Workspace

Bonanza Workspace is a tool for calling methods in Ruby module directly from command line.

This gem is only a framework, you should extend it with your own business logic.

Note: The tool is currently under hard development.

Examples

  1. Calling a simple method
  2. module Make
      include BW::Base
    
      def snapshot
        puts "Here is the snapshot logic"
      end
    end
    
    $ bw make snapshot
    
  3. Calling method with parameters
  4. module Calculator
      include BW::Base
    
      def sum(arg1, arg2)
        return arg1 + arg2
      end
    end
    
    $ bw Calculator sum 1 2
    
  5. Nested modules
  6. module Create
      include BW::Base
      module Release
        def snapshot(product_name)
          puts "Creating snapshot is started..."
        end
      end
    end
    
    $ bw Create Release snapshot check.it
    
  7. Derivation
  8. module Create
      include BW::Base
    
      def version
        "1.0"
      end
    
      module Release
      end
    end
    
    $ bw Create Release version
    => 1.0
    
Installation ------------

Add this line to your application's Gemfile:

gem 'bw'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bw

And then add these lines to your code:

require "rubygems"
require "bw"

About

Bonanza Workspace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages