Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- custom_require.call(%w[common events])
- class MoveBoxes
- include DRC
- def initialize
- arg_definitions = [
- [
- { name: 'container', regex: /\w+/i, variable: true, description: 'Name of the container to get boxes from' },
- { name: 'container2', regex: /\w+/i, variable: true, description: 'Name of the container to move boxes to' }
- ]
- ]
- args = parse_args(arg_definitions)
- get_boxes(args.container).each { |item| move_over(args.container, item, args.container2) }
- end
- def move_over(container, item, container2)
- fput("get my #{item} from my #{container}")
- fput("put my #{item} in my #{container2}")
- end
- end
- MoveBoxes.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement