lib/aws_ec2/command.rb in aws-ec2-0.3.0 vs lib/aws_ec2/command.rb in aws-ec2-0.4.0

- old
+ new

@@ -1,6 +1,19 @@ require "thor" +# Override thor's long_desc identation behavior +# https://github.com/erikhuda/thor/issues/398 +class Thor + module Shell + class Basic + def print_wrapped(message, options = {}) + message = "\n#{message}" unless message[0] == "\n" + stdout.puts message + end + end + end +end + module AwsEc2 class Command < Thor class << self def dispatch(m, args, options, config) # Allow calling for help via: