Skip to content

Commit

Permalink
Sort Config#new_transport lexically in class.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Jan 20, 2015
1 parent 810b375 commit d2b397c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/kitchen/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,27 +279,27 @@ def new_provisioner(suite, platform)
Provisioner.for_plugin(pdata[:name], pdata)
end

# Builds a newly configured Transport object, for a given Suite and
# Builds a newly configured StateFile object, for a given Suite and
# Platform.
#
# @param suite [Suite,#name] a Suite
# @param platform [Platform,#name] a Platform
# @return [Transport] a new Transport object
# @return [StateFile] a new StateFile object
# @api private
def new_transport(suite, platform)
tdata = data.transport_data_for(suite.name, platform.name)
Transport.for_plugin(tdata[:name], tdata)
def new_state_file(suite, platform)
StateFile.new(kitchen_root, instance_name(suite, platform))
end

# Builds a newly configured StateFile object, for a given Suite and
# Builds a newly configured Transport object, for a given Suite and
# Platform.
#
# @param suite [Suite,#name] a Suite
# @param platform [Platform,#name] a Platform
# @return [StateFile] a new StateFile object
# @return [Transport] a new Transport object
# @api private
def new_state_file(suite, platform)
StateFile.new(kitchen_root, instance_name(suite, platform))
def new_transport(suite, platform)
tdata = data.transport_data_for(suite.name, platform.name)
Transport.for_plugin(tdata[:name], tdata)
end
end
end

0 comments on commit d2b397c

Please sign in to comment.