lib/test-kitchen/dsl.rb in test-kitchen-0.6.0 vs lib/test-kitchen/dsl.rb in test-kitchen-0.7.0.beta.1

- old
+ new

@@ -13,14 +13,14 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # - require 'hashr' require 'test-kitchen/project' require 'test-kitchen/platform' +require 'test-kitchen/runner/openstack/dsl' module TestKitchen module DSL module BasicDSL @@ -28,9 +28,13 @@ env.project = Project::Ruby.new(name.to_s, &block) end def platform(name, &block) env.platforms[name.to_s] = Platform.new(name, &block) + end + + def default_runner(name) + env.default_runner = name end end module CookbookDSL def cookbook(name, &block) env.project = Project::Cookbook.new(name.to_s, &block)