Permalink
Browse files

Had to require some chef/knife files to get around lazy loading

  • Loading branch information...
1 parent 05e4ae2 commit 916ac5431dd1733843f7f6837e95bf831e21d9d0 @rberger committed May 2, 2011
Showing with 15 additions and 8 deletions.
  1. +15 −8 lib/chef/knife/cluster_launch.rb
@@ -16,14 +16,21 @@
# limitations under the License.
#
-require 'socket'
require 'chef/knife'
-require 'json'
-require 'cluster_chef'
+
module Cluster
class ClusterLaunch < Chef::Knife
+
+ deps do
+ require 'socket'
+ require 'json'
+ require 'cluster_chef'
+ require 'chef/knife/core/bootstrap_context'
+ require 'chef/search/query'
+ require 'chef/mixin/command'
+ end
banner "knife cluster launch CLUSTER_NAME FACET_NAME (options)"
@@ -144,12 +151,12 @@ def run
# Bootstrap it (if requested)
#
if config[:bootstrap]
- begin
+ # begin
bootstrap_for_node(server).run
- rescue StandardError => e
- warn e
- warn e.backtrace
- end
+ # rescue StandardError => e
+ # warn e
+ # warn e.backtrace
+ # end
end
end

0 comments on commit 916ac54

Please sign in to comment.