2014-03-04 52 views
1

我使用Test-Kitchen爲我的集成測試和我對廚房命令specificaly有關OPTS幾個疑點屬性什麼是Test-Kitchen命令中的opts屬性?

這是廚房的命令。

Commands: 
    kitchen console       # Kitchen Console! 
    kitchen converge [(all|<REGEX>)] [opts] # Converge one or more instances 
    kitchen create [(all|<REGEX>)] [opts] # Create one or more instances 
    kitchen destroy [(all|<REGEX>)] [opts] # Destroy one or more instances 
    kitchen diagnose [(all|<REGEX>)]   # Show computed diagnostic configuration 
    kitchen driver       # Driver subcommands 
    kitchen driver create [NAME]    # Create a new Kitchen Driver gem project 
    kitchen driver discover     # Discover Test Kitchen drivers published on RubyGems 
    kitchen driver help [COMMAND]   # Describe subcommands or one specific subcommand 
    kitchen help [COMMAND]     # Describe available commands or one specific command 
    kitchen init        # Adds some configuration to your cookbook so Kitchen can rock 
    kitchen list [(all|<REGEX>)]    # List all instances 
    kitchen login (['REGEX']|[INSTANCE])  # Log in to one instance 
    kitchen setup [(all|<REGEX>)] [opts]  # Setup one or more instances 
    kitchen test [all|<REGEX>)] [opts]  # Test one or more instances 
    kitchen verify [(all|<REGEX>)] [opts] # Verify one or more instances 
    kitchen version 

有沒有人用過例如kitchen converge [opts]

什麼樣的選項我可以用嗎?

回答

3

運行kitchen help converge - 它會顯示所有選項。您可以運行kitchen help <command>以獲取更多信息。選項列表因命令而異。

例如:

kitchen converge --concurrency 5 --parallel 
+0

我使用廚房1.0.0,當我執行幫廚的融合,它只是表明我的選擇--parallel(-p)。 @sethvargo你能告訴我你在哪裏找到選項--concurrency 5?我正在查看有關這方面的信息。 – Robert

+0

更新至最新版本 – sethvargo